home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
INFO
/
FTP2UK23.ZIP
/
ftget10.doc
< prev
next >
Wrap
Internet Message Format
|
1991-09-16
|
4KB
From nino@mph.sm.ucl.ac.uk Mon Sep 16 19:12:21 1991
From: nino@mph.sm.ucl.ac.uk (Nino Margetic)
Date: Mon, 16 Sep 1991 19:14:13 +0100
Organization: University College London - Dept. of Medical Physics
Subject: ftget version 1.0
Hi,
Maybe you'll find the following experience usefull - it is not general,
and it is applicable only for Unix hosts on the Janet network, but I'm
sure that there must be a dedicated VMS (or whateverOS) hacker who can
think of something similar for the appropriate OS.
When I want something from Simtel (or, for that matter, any other PD sw
repository in USA) I go thru the ft-relay. It's much faster than any
other option.
I have written two little shell scripts which I have put into my ~/bin
directory (but it can be anywhere within your search path) and I have
called them ftget and ftget.proto (but it will work quite well under any
other name - providing a line or two were changed).
The ftget.proto is just an interface to the ftget script which actually
invokes the NIFTP/FTP transfer (it can be hhcp, or cpf, or fcp, or
whatever) via the uk.ac.ft-relay gateway.
The general way of invoking the transfer is:
short_hostname [-b] remote_directory remote_file
For each system I wish to connect, I add a symbolic link with an unique
hostname which points to the ftget.proto script, and add an extra line
into the ftget.proto script which will describe the new system. Symbolic
link can be created by:
ln -s ftget.proto short_hostname
The extra line in the ftget.proto script (below the case statement) is of
the form:
short_hostname) host=some.host.university.edu;bdir=base_directory;;
You can set bdir to /pub or whatever, to shorten the typing for every
transfer.
As an example, if I want to collect a file from the Wuarchive.Wustl.Edu
(mirror of Simtel20, but more FTP lines, and faster thruput), let's say
the file: BAT2EX14.ZIP from the PCMAG directory, I issue the command:
wustl -b pcmag bat2ex14.zip
where the script "wustl" is only a symbolic link (created by:
ln -s ftget.proto wustl
Unix command) to the original ftget.proto script. The -b switch stands
for binary transfers. The accompanying line in the ftget.proto reads:
wustl) host=wuarchive.wustl.edu;bdir=mirrors/msdos;;
where mirrors/msdos is the common directory branch for the Simtel stuff.
Since you are using hhcp instead of cpf, you'll need to edit the ftget
script and replace the line:
cpf $swch -U=$user@$host -p=$pw $dir/$file@uk.ac.ft-relay $file
with something like:
hhcp $swch -T user@host -P $pw uk.ac.ft-relay:$dir/$file $file
due to the different syntax of cpf and hhcp. If you change the name of ftget
script, make sure that you change the name in the ftget.proto.
I prefer to use the -T usename -P passwd compared to hhstore stuff, since
the username will change with the host you want to connect to (not to
mention the recent security scare about the hhstore).
You'll probably want to change the password for the anonymous FTP into your
email address.
That is just about all that I could think of. If you have an questions,
please let me know, and I'll do my best to try to answer them.
I hope that I haven't forgotten anything important.
Best regards,
--Nino
P.S. Here are the scripts:
--------------------------- FTGET ---------------------------------------
[ Now in file 'ftget' ]
------------------------- FTGET.PROTO -----------------------------------
[ Now in file 'ftget.proto' ]
-------------------------------------------------------------------------
Janet: nino@uk.ac.ucl.sm.mph \ Nino Margetic
Earn/Bitnet: nino@mph.sm.ucl.ac.uk \ Dept. of Medical Physics
Internet: nino%mph.sm.ucl.ac.uk@nsfnet-relay.ac.uk\ University College London
Bang-path: ....!mcvax!ukc!ucl-mph!nino \ Tel:+44-71-380-9300/x5313
-----
Excellent day to have a rotten day.